﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text.Json.Serialization;
using System.Threading.Tasks;
using FreeSql.DataAnnotations;
using Newtonsoft.Json;

namespace Bzzb.Model
{
    [Table(Name = "jilu")]
    public class JiLu
    {
        [Column(IsIdentity = true, IsPrimary = true, Name = "id")]
        [JsonProperty("id")]
        public long Id { get; set; }

        [Column(Name = "name")]
        [Description("修改人")]
        [JsonProperty("name")]
        public string Name { get; set; }

        [Column(Name = "number")]
        [Description("任务编号")]
        [JsonProperty("number")]
        public string Number { get; set; }

        [Column(Name = "xjlx")]
        [Description("巡检路线")]
        [JsonProperty("xjlx")]
        public string Xjlx { get; set; }

        [Column(Name = "xjsb")]
        [Description("巡检设备")]
        [JsonProperty("xjsb")]
        public string Xjsb { get; set; }

        [Column(Name = "beforestatus")]
        [Description("原始设备状态")]
        [JsonProperty("beforestatus")]
        public string BeforeStatus { get; set; }

        [Column(Name = "afterstatus")]
        [Description("修改后设备状态")]
        [JsonProperty("afterstatus")]
        public string AfterStatus { get; set; }

        [Column(Name = "beforeresult")]
        [Description("原始巡检数据结果")]
        [JsonProperty("beforeresult")]
        public string BeforeResult { get; set; }

        [Column(Name = "afterresult")]
        [Description("修改后巡检数据结果")]
        [JsonProperty("afterresult")]
        public string AfterResult { get; set; }

        [Column(Name = "created", ServerTime = DateTimeKind.Local, CanUpdate = false, DbType = "datetime(0) NOT NULL")]
        [JsonProperty("created")]
        public DateTime CreateTime { get; set; }

        [Column(Name= "updated", ServerTime = DateTimeKind.Local, DbType = "datetime(0) NOT NULL")]
        [JsonProperty("updated")]
        public DateTime UpdateTime { get; set; }
    }
}
